-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(typescript): add missing types #284
Conversation
types/index.d.ts
Outdated
scopes_supported?: string[]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scopes_supported
is not an IANA registered client metadata property. Please remove this blob.
scopes_supported
could potentially go to the IssuerMetadata
interface, but as the library never reacts to its presence it's not included. I'm keen to only include properties that change the client/issuer behaviour. So it's either all or nothing and i think the inclusion of [key: string]: unknown;
handles all possible metadata for anyone.
@@ -346,6 +347,7 @@ export class Client { | |||
[custom.http_options]: CustomHttpOptionsProvider; | |||
[custom.clock_tolerance]: number; | |||
metadata: ClientMetadata; | |||
issuer: Issuer<this>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's also a static
version of it, please add that too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks for the detailed review! |
@jaulz thanks for the contribution! |
Some helpful properties were missing in the types.